#include "Common.h"
#include "ConcurrentAlloc.h"

void Alloc1()
{
	for (int i = 1;i <= 5;i++)
	{
		void* ptr = ConcurrentAlloc(6);
	}
}

void Alloc2()
{
	for (int i = 1;i <= 5;i++)
	{
		void* ptr = ConcurrentAlloc(7);
	}
}

void testTLS()
{
	std::thread t1(Alloc1);
	std::thread t2(Alloc2);
	t1.join();
	t2.join();
}

int main()
{
	testTLS();
	return 0;
}